import win32com.client as win32

# 创建 Outlook 应用程序对象
outlook = win32.Dispatch('Outlook.Application')

# 创建邮件对象
mail = outlook.CreateItem(0)

# 设置邮件属性
mail.Subject = 'Test Email'
mail.Body = 'This is a test email.'
mail.To = 'recipient@example.com'

# 发送邮件
mail.Send()